﻿CREATE TABLE [dbo].[LargeOrder]
(
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[RowId] [uniqueidentifier] ROWGUIDCOL DEFAULT (NEWID()) NOT NULL,
	[IsDeleted] [bit] NOT NULL,
	[CreatedDate] [datetime] NOT NULL,
	[ModifiedDate] [datetime] NOT NULL,
	[ModifiedByUserId] [int] NULL,
	[Version] [timestamp] NOT NULL,
	[AgreementId] [int] NOT NULL,
	[OrderNumber] [varchar](32) NOT NULL,
	[ReducedUnitPrice] [numeric](12,2) NOT NULL,
	[ReducedTotalPrice] [numeric](12,2) NOT NULL,
	[DiscountRate] [numeric](6,2) NOT NULL,
	[PaymentTypeId] [int] NOT NULL,
	[TotalAmount] [numeric](12,2) NOT NULL,
	[DepositAmount] [numeric](12,2) NOT NULL,
	[FirstInstalmentAmount] [numeric](12,2) NOT NULL,
	[MortgageAmount] [numeric](12,2) NOT NULL,
	[EngagedContractDate] [datetime] NOT NULL,
	[SignatureDate] [datetime] NOT NULL,
	[Comment] [nvarchar](512) NULL,
)